package com.wave.spring.boot.plugs;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import java.util.Arrays;

/**
 * Created by weibo.xwb on 2017/8/10.
 */
//定制的CommandLineRunner
@Component
public class CanonCustomCommandLineRunner implements CommandLineRunner {

    private static final Logger logger = LoggerFactory.getLogger(CanonCustomCommandLineRunner.class);

    @Override
    public void run(String... args) throws Exception {
        logger.warn("Awesome! My CommandLineRunner worked!"+ Arrays.toString(args));
    }
}
